import { Router } from 'express';
import authRoutes from './auth';
import monitorRoutes from './monitor';
import registerRoutes from './register';
import systemRoutes from './system';
import toolRoutes from './tool';
import commonRoutes from './common';

const router = Router();

// 默认路由
router.get('/', (req, res) => {
  res.json({ message: 'RuoYi Node API 服务运行中' });
});

// 认证路由
router.use("/", authRoutes);

// 注册路由
router.use("/register", registerRoutes);

// 系统管理路由
router.use('/system', systemRoutes);

// 监控管理路由
router.use('/monitor', monitorRoutes);

// 工具管理路由
router.use('/tool', toolRoutes);

// 通用管理路由
router.use("/common", commonRoutes);


export default router;